package com.shaobufan.museum.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shaobufan.museum.pojo.entity.Category;
import com.shaobufan.museum.pojo.vo.CategoryVo;

import java.util.List;

/**
 * @author 17126
 * @description 针对表【museum_category(馆藏分类表)】的数据库操作Service
 * @createDate 2024-03-12 20:46:34
 */
public interface CategoryService extends IService<Category> {

    /**
     * 检索所有藏品类别
     *
     * @return 类别 List
     */
    List<CategoryVo> searchCategory();

    /**
     * 按照馆藏类别 id查询 mane
     *
     * @param categoryId 馆藏类别id
     * @return CategoryVo
     */
    CategoryVo searchCategoryById(Integer categoryId);

    /**
     * @param category 类别实体
     * @return museumCategoryVo
     */
    CategoryVo getMuseumCategoryVo(Category category);
}
